using System;
using System.Windows.Forms;

namespace FluentBinding.WinForms.Controls
{
    public class DateTimePickerBinding<E> : ControlBinding<E>, IDateTimePickerBinding<E>
    {
        public DateTimePickerBinding(BindingProxy<E> bindingProxy)
            : base(bindingProxy)
        {
        }

        #region IDateTimePickerBinding<E> Members

        public IPropertyBinding<E, bool> Checked
        {
            get { return Property<bool>("Checked"); }
        }

        public IPropertyBinding<E, DateTime> Value
        {
            get { return Property<DateTime>("Value"); }
        }

        public IPropertyBinding<E, DateTime> MinDate
        {
            get { return Property<DateTime>("MinDate"); }
        }

        public IPropertyBinding<E, DateTime> MaxDate
        {
            get { return Property<DateTime>("MaxDate"); }
        }

        #endregion      
    }
}